package fit.deni.hibernate.interfaces;

import java.util.Collection;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import fit.deni.beans.Klub;

public interface KlubService {

	@CommitAfter
	public abstract void addClub(Klub klub);
	
	@CommitAfter
	public void deleteClub(Klub klub);

	public abstract Collection<Klub> getAll();

	public Klub getClubById(int id);
	
	public Klub getClubByName(String string);
	
}